package com.wn.service;

import com.wn.bean.Building;
import com.wn.bean.R;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2022 -07-12
 * @desc
 */
public interface BuildService {


    R findBuild(Integer currentPage, Integer pageSize);

    /**
     * 通过id删除
     * @param id
     * @return
     */
    R buildDeleteById(Integer id);

    /**
     * 通过id查询
     * @param id
     * @return
     */
    R buildFindById(Integer id);

    /**
     * 修改操作
     * @param build
     * @return
     */
    R updateBuild(Building build);

    R addBuilding(Building build);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    R deleteRows(List<Integer> ids) throws RuntimeException;
}
